package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.PresaleCouponOrder;
import com.ecoolex.hotel.saas.entity.PresaleCouponOrderExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface PresaleCouponOrderMapper {
    long countByExample(PresaleCouponOrderExample example);

    int deleteByExample(PresaleCouponOrderExample example);

    int deleteByPrimaryKey(Integer orderId);

    int insert(PresaleCouponOrder record);

    int insertSelective(@Param("record") PresaleCouponOrder record, @Param("selective") PresaleCouponOrder.Column ... selective);

    PresaleCouponOrder selectOneByExample(PresaleCouponOrderExample example);

    List<PresaleCouponOrder> selectByExample(PresaleCouponOrderExample example);

    PresaleCouponOrder selectByPrimaryKey(Integer orderId);

    PresaleCouponOrder selectByPrimaryKeyWithLogicalDelete(@Param("orderId") Integer orderId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") PresaleCouponOrder record, @Param("example") PresaleCouponOrderExample example, @Param("selective") PresaleCouponOrder.Column ... selective);

    int updateByExample(@Param("record") PresaleCouponOrder record, @Param("example") PresaleCouponOrderExample example);

    int updateByPrimaryKeySelective(@Param("record") PresaleCouponOrder record, @Param("selective") PresaleCouponOrder.Column ... selective);

    int updateByPrimaryKey(PresaleCouponOrder record);

    int batchInsert(@Param("list") List<PresaleCouponOrder> list);

    int batchInsertSelective(@Param("list") List<PresaleCouponOrder> list, @Param("selective") PresaleCouponOrder.Column ... selective);

    int logicalDeleteByExample(@Param("example") PresaleCouponOrderExample example);

    int logicalDeleteByPrimaryKey(Integer orderId);
}